import { Router } from 'vue-router';

export default function loadModuleRoutes(router: Router) {
  const modules = import.meta.globEager('./modules/**/*.ts');
  Object.keys(modules).forEach((key) => {
    router.addRoute(modules[key].default);
  });
}
